import { Component } from 'react';
import Tab from '../components/Tab'
import Header from '../components/Header'
class ToDoList extends Component {
    constructor() {
        super()
    }

    getTodos = (data) => {
        console.log(data)
    }

    render() {
        const list = ['全部','正在进行', '已经完成', '删除']
        return (
            <div>
                <Header getFun={this.getTodos}/>
                这是个todolist组件
                <Tab list={list}/>
            </div>
        )
    }
}

export default ToDoList